package com.tongsys.server.service.impl;

import com.tongsys.server.entity.Permission;
import com.tongsys.server.mapper.PermissionMapper;
import com.tongsys.server.service.IPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements IPermissionService {

    @Override
    public List<Permission> findPermissionByUserId(Integer id) {
        return baseMapper.findPerissionByUser(id);
    }
}
